/**
 * \file  rnaffe_exception.h
 * \brief Definition of Exceptions.
 *
 *              System: CombEng \n
 *              Language: C++\n
 *
 *  @author     Favio Bettiol
 *  @email      favio.bettiol AT gmail.com
 *
 *  @author     Diego Diaz
 *  @email      diazdiego86 AT gmail.com
 *
 *  @date       August 2010
 *  @version    0.1
 *
 * This file is part of CombEng
 *
 * CombEng : Combinatory Engine, an FuD's abstraction layer for problems that
 * require to combine elements. Also, this layer provides ranking and prune
 * features for these combinations.
 * <http://fud.googlecode.com/>
 *
 * Copyright (C) 2010 - Favio Bettiol and Diego Diaz
 *
 * CombEng is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * CombEng is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with CombEng .  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef RNAFFE_EXCEPTION_H
#define RNAFFE_EXCEPTION_H

#include <mili/mili.h>

class RnaffeExceptionHierarchy {};

typedef mili::GenericException<RnaffeExceptionHierarchy> RnaffeException;

/* ---------- Excepciones por valores discordantes --------------- */
DEFINE_SPECIFIC_EXCEPTION_TEXT(WrongValue, RnaffeExceptionHierarchy, "Bad Value");

/* ----------- Excepciones por errores de usuario ---------------- */
DEFINE_SPECIFIC_EXCEPTION_TEXT(WrongUse, RnaffeExceptionHierarchy, "Bad Use");

/* --------- Excepciones errores internos del sistema ------------ */
DEFINE_SPECIFIC_EXCEPTION_TEXT(SystemErrors, RnaffeExceptionHierarchy, "SystemError");

/* --- Falta descripcion --- */
DEFINE_SPECIFIC_EXCEPTION_TEXT(SequenceErrors, RnaffeExceptionHierarchy, "Sequence Error");

#endif
